package com.yimingkeji.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @Describe:
 * @Auther: zhenlong.yang
 * @Date: 2018/11/21 19:54
 */
@Configuration
@ConfigurationProperties(prefix = "myconfig.user")
@Data
public class User {
    private String name;
    private int sex;
    private int age;
}
